using System.Xml.Serialization;

namespace Commons.Injector.Dtos
{
	public class PropertyDto
	{
		[XmlAttribute(AttributeName = "name", Type = typeof(string))]
		public string Name { get; set; }

		[XmlAttribute(AttributeName = "type", Type = typeof(string))]
		public string Type { get; set; }

		[XmlAttribute(AttributeName = "value", Type = typeof(string))]
		public string Value { get; set; }

		[XmlAttribute(AttributeName = "ref", Type = typeof(string))]
		public string Ref { get; set; }

		[XmlAttribute(AttributeName = "lazy", Type = typeof(bool))]
		public bool Lazy { get; set; }

		[XmlElement(ElementName = "dictionary")]
		public DictionaryDto Dictionary { get; set; }

		[XmlElement(ElementName = "list")]
		public ListDto List { get; set; }
	}
}

